#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

using namespace std;

struct a {
	int a;
	char* b;
}aaa;


struct b {
	char* b;
	int a;
}bbb;

struct c {
	short b;
}ccc;

struct d {
	short a;
	short b;
	short c;
}ddd;

struct e {
	short a;
	int b;
	short c;
}eee;

struct f {
	char a;
	int b;
	short c;
	struct d dd;
}fff;//6

class ca
{
    int a;
    public:
    ca() { a = 0;}
    int b;
    char c;
    char d;
};

int main ()
{
	string a("aaaaaaaaaaaaaaaaaaaa");
	cout << sizeof(string) << " " << sizeof(a) << endl;
	cout << " " << strlen(a.c_str()) << endl;
	cout << sizeof (aaa) << " " << sizeof(bbb) << " " << sizeof(ccc) << " " << sizeof(ddd) << " " << sizeof(eee) << " " << sizeof(fff) << endl;//16
    cout << sizeof (ca) << endl;
	return 0;
}
